package com.qrxl.user.vo;

import com.qrxl.user.entity.Role;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * desc: 登录时存放到session的对象
 *
 * @author friday
 */
@Data
@ApiModel(value = "用户列表返回对象", description = "方法参数")
public class UserLoginInfo implements Serializable {

    private static final long serialVersionUID = 7660395621840622417L;

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "登录名")
    private String loginName;

    @ApiModelProperty(value = "真实姓名")
    private String userName;

    /**
     * typeId:账号类型:0,"超级管理员"; 1,"平台管理员"; 2,"普通用户";
     * 新的typeId 和旧的typeId 不是一个东西，旧的请使用platformType
     */
    private Integer type;


    private List<Role> roleList;
}
